﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="modificarHorario.aspx.cs" Inherits="A_modificarHorario" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContenido" Runat="Server">
    <table class="style1" width="650px">
        <tr>
            <td>
                Editar Horarios</td>
            <td>
                <asp:HiddenField ID="txtIdClase" runat="server" Visible="False" />
            </td>
            <td style="text-align: right">
                <asp:LinkButton ID="lnkListadoClases" runat="server" 
                    PostBackUrl="proClase.aspx">Volver al listado de clases</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Panel ID="pnlHorarios" runat="server">
                    <table class="style1" width="600px">
                        <tr>
                            <td class="style6">
                                Horarios</td>
                            <td colspan="6">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style6">
                                Dia:</td>
                            <td>
                                <asp:DropDownList ID="ddlDia" runat="server">
                                    <asp:ListItem>Lunes</asp:ListItem>
                                    <asp:ListItem>Martes</asp:ListItem>
                                    <asp:ListItem>Miercoles</asp:ListItem>
                                    <asp:ListItem>Jueves</asp:ListItem>
                                    <asp:ListItem>Viernes</asp:ListItem>
                                    <asp:ListItem>Sabado</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="text-align: right">
                                Hora inicio:</td>
                            <td>
                                <asp:DropDownList ID="ddlHoraInicio" runat="server" Width="50px">
                                </asp:DropDownList>
                                :
                                <asp:DropDownList ID="ddlMinutosInicio" runat="server" Width="50px">
                                </asp:DropDownList>
                            </td>
                            <td style="text-align: right">
                                Hora fin:</td>
                            <td>
                                <asp:DropDownList ID="ddlHoraFin" runat="server" Width="50px">
                                </asp:DropDownList>
                                :
                                <asp:DropDownList ID="ddlMinutosFin" runat="server" Width="50px">
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:Button ID="ddlAgregarHorario" runat="server" 
                                    onclick="ddlAgregarHorario_Click" Text="Agregar Horario" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style5" colspan="7">
                                <asp:Label ID="lblHorario" runat="server"></asp:Label>
                    <br />

                                <asp:GridView ID="dgvHorarios" runat="server" AutoGenerateColumns="False"  
                                    onselectedindexchanged="dgvHorarios_SelectedIndexChanged">
                                    <Columns>
                                        <asp:BoundField DataField="Dia" HeaderText="Día" />
                                        <asp:BoundField DataField="HoraInicio" HeaderText="Hora Inicio" />
                                        <asp:BoundField DataField="HoraFin" HeaderText="Hora Fin" />
                                        <asp:CommandField SelectText="Eliminar" ShowSelectButton="True" />
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblError" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>

